import request from '@/utils/request'

// 查询代理商员工列表
export function listAgentUser(query) {
    return request({
        url: '/business/agentUser/list',
        method: 'get',
        params: query
    })
}

// 查询代理商员工详细
export function getAgentUser(id) {
    return request({
        url: '/business/agentUser/' + id,
        method: 'get'
    })
}

// 新增代理商员工
export function addAgentUser(data) {
    return request({
        url: '/business/agentUser',
        method: 'post',
        data: data
    })
}

// 修改代理商员工
export function updateAgentUser(data) {
    return request({
        url: '/business/agentUser',
        method: 'put',
        data: data
    })
}

// 删除代理商员工
export function delAgentUser(id) {
    return request({
        url: '/business/agentUser/' + id,
        method: 'delete'
    })
}
